package com.sunny.design.strategy.exam2;

/**
 * @author Sunny
 * @date 2020/1/4 22:40
 */
public class PayStrategyTest {
    public static void main(String[] args) {
        Order order = new Order("1","20200104001000009",324.45);

        //开始支付，选择微信支付、支付宝、银联卡
        //每个渠道它支付的具体算法是不一样的
        MsgResult pay = order.pay(PayStrategy.UNION_PAY);
        System.out.println(pay);
    }
}
